function r = rows(x)
% PURPOSE: return rows in a matrix x
% -----------------------------------------
% USAGE: r = rows(x)
% where: x = input matrix
% -----------------------------------------
% RETURNS: r = # of rows in x
% -----------------------------------------

  [r,c] = size(x);
